package day15_tasks;

public class A_Round extends A_SC{
    private int r;
    private double pi;

    public A_Round() {
    }

    public A_Round(int r, double pi) {
        this.r = r;
        this.pi = pi;
    }

    public int getR() {
        return r;
    }

    public void setR(int r) {
        this.r = r;
    }

    public double getPi() {
        return pi;
    }

    public void setPi(double pi) {
        this.pi = pi;
    }

    //求面积功能
    public double S(){
        double S = pi*r*r;
        return S;
    }

    //求周长功能
    public double C(){
        double C = 2 * pi * r;
        return C;
    }
}
